﻿<%@ Page Title="" Language="C#" MasterPageFile="~/admin/admin.master" AutoEventWireup="true" CodeFile="Company_Info.aspx.cs" Inherits="admin_Company_Info" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>


<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:ToolkitScriptManager ID="ScriptManager1" runat="server"></asp:ToolkitScriptManager>
<script language="javascript" type="text/javascript">
    function mpeCuentaOnCancel() {

    }
</script>
<div class="grid_16" id="content">
    <!--  TITLE START  --> 
    <div class="grid_9">
    <h1 class="dashboard">COMPANY</h1>
    </div>
    <!--RIGHT TEXT/CALENDAR-->
    <div class="grid_6" id="eventbox"><a href="#" class="inline_calendar">Mensaje</a><div class="hidden_calendar"></div></div>
    <!--RIGHT TEXT/CALENDAR END-->
    <div class="clear"></div>
    <!--  TITLE END  -->    

    <!-- #PORTLETS START -->
    <div id="portlets">
    <!-- FIRST SORTABLE COLUMN START -->
      <div class="column" id="left">
        <asp:Image ID="logo" runat="server" style="max-width:260px; min-height:150px;" />
      </div>
	<!--  SECOND SORTABLE COLUMN END -->
    <div class="clear"></div>
    <!--THIS IS A WIDE PORTLET-->
    <div class="portlet">
            <table width="100%" cellpadding="0" cellspacing="0" id="box-table-a">
            <tbody>
                <tr>
                    <td>
                        <asp:TabContainer ID="TabCointainer1" runat="server"  ActiveTabIndex="2" 
                            Width="100%">
                            <asp:TabPanel runat="server" HeaderText="Company Info" ID="TP1">
                            <HeaderTemplate>Company Info</HeaderTemplate>
                            <ContentTemplate>
                                <div class="portlet-header fixed"><img src="images/icons/user.gif" width="16" height="16" alt="Accounts" /> Company Info</div>
                                <div class="portlet-content nopadding" style="font-size:13px!Important">
                                    <table width="100%" cellpadding="0" cellspacing="0"  id="Table1" summary="Add Location" align="center">
                                    <tbody>
                                        <tr>
                                            <td>Company Name *</td>
                                            <td>
                                                <asp:Label ID="lb_companyid" runat="server" Text="0" Visible="False"></asp:Label>
                                                <asp:TextBox ID="tb_companyname" runat="server" Width="230px"></asp:TextBox>
                                            </td>
                                            <td>Number of Employees *</td>
                                            <td><asp:TextBox ID="tb_numberemployees" runat="server" Enabled="False" 
                                                    Width="230px"></asp:TextBox></td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:Label ID="lb_nit" runat="server" Text="Tax ID"></asp:Label>
                                                &nbsp;*</td>
                                            <td>
                                                <asp:TextBox ID="tb_nit" runat="server" Width="230px"></asp:TextBox>
                                                <asp:RegularExpressionValidator ID="rg_nit" runat="server" 
                                                    ControlToValidate="tb_nit" CssClass="lberror" Display="Dynamic" 
                                                    ErrorMessage="Invalid" Font-Italic="True" Font-Names="Arial" Font-Size="Small" 
                                                    ValidationExpression="([0-9]+[-]?[0-9]+)$" Font-Bold="True"></asp:RegularExpressionValidator>
                                            </td>
                                            <td>Number of Accounts *</td>
                                            <td><asp:TextBox ID="tb_noaccount" runat="server" Enabled="False" Width="230px"></asp:TextBox></td>
                                        </tr>
                                        <tr>
                                            <td>Phone Number 1 *</td>
                                            <td>
                                                <asp:TextBox ID="tb_phone1" runat="server" Width="230px"></asp:TextBox>
                                                
                                            </td>
                                            <td>Phone Number 2</td>
                                            <td>
                                                <asp:TextBox ID="tb_phone2" runat="server" Width="230px"></asp:TextBox>
                                                
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>Fax *</td>
                                            <td>
                                                <asp:TextBox ID="tb_fax" runat="server" Width="230px"></asp:TextBox>
                                                
                                            </td>
                                            <td>Phone Number 3</td>
                                            <td>
                                                <asp:TextBox ID="tb_phone3" runat="server" Width="230px"></asp:TextBox>
                                                
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>Website *</td>
                                            <td>
                                                <asp:TextBox ID="tb_website" runat="server" Width="230px"></asp:TextBox>
                                                <asp:RegularExpressionValidator ID="rg_website" runat="server" 
                                                    ControlToValidate="tb_website" CssClass="lberror" Display="Dynamic" 
                                                    ErrorMessage="Invalid" Font-Italic="True" Font-Names="Arial" Font-Size="Small" 
                                                    ValidationExpression="^(https?:\/\/)?([\da-zA-Z\.-]+)\.([a-zA-Z\.]{2,6})([\/\w \?=.-]*)*\/?$" Font-Bold="True"></asp:RegularExpressionValidator>
                                            </td>
                                            <td>Contact E-Mail *</td>
                                            <td>
                                                <asp:TextBox ID="tb_contactemail" runat="server" Width="230px"></asp:TextBox>
                                                <asp:RegularExpressionValidator ID="rg_email" runat="server" 
                                                    ControlToValidate="tb_contactemail" CssClass="lberror" Display="Dynamic" 
                                                    ErrorMessage="Invalid" Font-Italic="True" Font-Names="Arial" Font-Size="Small" 
                                                    ValidationExpression="^([0-9a-zA-Z]([-.\w]*[0-9a-zA-Z])*@([0-9a-zA-Z][-\w]*[0-9a-zA-Z]\.)+[a-zA-Z]{2,9})$" Font-Bold="True"></asp:RegularExpressionValidator>
                                            </td>
                                        </tr>
                                        <tr align="right">
                                            <td colspan="4" align="right">
                                                <span>&nbsp;</span>
                                                <% if (id!=0) { %>
                                                    <asp:LinkButton ID="LinkButton1" runat="server" class="button_ok" onclick="LinkButton1_Click"><span>Save</span></asp:LinkButton>
                                                    <asp:LinkButton ID="LinkButton2" runat="server" class="button_edit" onclick="LinkButton2_Click"><span>Edit</span></asp:LinkButton>
                                                    <asp:LinkButton ID="LinkButton3" runat="server" class="button_notok" onclick="LinkButton3_Click"><span>Delete</span></asp:LinkButton>
                                                    <asp:ConfirmButtonExtender ID="ConfirmButtonExtender1" runat="server" ConfirmText="Are you sure the company needs to be deleted?" Enabled="True" 
                                                    TargetControlID="LinkButton3"></asp:ConfirmButtonExtender>
                                                <% } %>
                                                
                                                <asp:LinkButton ID="LinkButton10" runat="server" class="button_ok" onclick="LinkButton10_Click" Visible="False"><span>Next</span></asp:LinkButton>
                                                <asp:LinkButton ID="LinkButton15" runat="server" ForeColor="White" TabIndex="5">.</asp:LinkButton>
                                                <asp:ModalPopupExtender ID="LinkButton15_ModalPopupExtender" runat="server"  BackgroundCssClass="FondoAplicacion"
                                                DynamicServicePath="" Enabled="True" TargetControlID="LinkButton15" PopupControlID="Panel2">
                                                </asp:ModalPopupExtender>
                                                <asp:LinkButton ID="btnCuentaCancelar" runat="server" class="button_cancel" onclick="btnCuentaCancelar_Click"><span>Cancel</span></asp:LinkButton>
                                            </td>
                                        </tr>
                                    </tbody>
                                    </table>
                                </div>
                            </ContentTemplate>
                            </asp:TabPanel>

                            <asp:TabPanel runat="server" HeaderText="Location" ID="TP2">
                            <HeaderTemplate>Location</HeaderTemplate>
                            <ContentTemplate>
                                <div class="portlet-header fixed"><img src="images/icons/user.gif" width="16" height="16" alt="Location" /> Location</div>
		                        <div class="portlet-content nopadding" style="font-size:13px!Important">
                                    <table width="100%" cellpadding="0" cellspacing="0" id="Table3">
                                        <tbody>
                                            <tr>
                                                <td>
                                                    Country *</td>
                                                <td>
                                                    <asp:DropDownList ID="cb_country" runat="server" Height="23px" 
                                                        style="margin-bottom: 0px" Width="204px" Enabled="False">
                                                        <asp:ListItem Value="0">Select One</asp:ListItem>
                                                    </asp:DropDownList>
                                                </td>
                                                <td>
                                                    City *</td>
                                                <td>
                                                    <asp:TextBox ID="tb_city" runat="server" Height="19px" Width="200px"></asp:TextBox>
                                                    <asp:RegularExpressionValidator ID="rg_city" runat="server" 
                                                    ControlToValidate="tb_city" CssClass="lberror" Display="Dynamic" 
                                                    ErrorMessage="Invalid" Font-Italic="True" Font-Names="Arial" Font-Size="Small" 
                                                    ValidationExpression="[a-zA-ZñÑ\ ]*$" Font-Bold="True"></asp:RegularExpressionValidator>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <asp:Label ID="lb_state" runat="server" Text="State"></asp:Label>
                                                    &nbsp;*</td>
                                                <td>
                                                    <asp:TextBox ID="tb_state" runat="server" Height="19px" Width="200px"></asp:TextBox>
                                                </td>
                                                <td>
                                                    <asp:Label ID="lb_zipcode" runat="server" Text="Zipcode"></asp:Label>
                                                    &nbsp;*</td>
                                                <td>
                                                    <asp:TextBox ID="tb_zip" runat="server" Height="19px" Width="200px"></asp:TextBox>
                                                    <asp:RegularExpressionValidator ID="rg_zip" runat="server" 
                                                    ControlToValidate="tb_zip" CssClass="lberror" Display="Dynamic" 
                                                    ErrorMessage="Invalid" Font-Italic="True" Font-Names="Arial" Font-Size="Small" 
                                                    ValidationExpression="\d{5}(-\d{4})?$" Font-Bold="True"></asp:RegularExpressionValidator>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    Address 1 *</td>
                                                <td>
                                                    <asp:TextBox ID="tb_address1" runat="server" Height="19px" Width="200px"></asp:TextBox>
                                                </td>
                                                <td>
                                                    Address 2</td>
                                                <td>
                                                    <asp:TextBox ID="tb_address2" runat="server" Height="19px" Width="200px"></asp:TextBox>
                                                </td>
                                            </tr>
                                            <tr align="right">
                                            <td colspan="4" align="right">
                                                <span>&nbsp;</span>
                                                
                                                <% if (id!=0) { %>
                                                    <asp:LinkButton ID="LinkButton8" runat="server" class="button_ok" onclick="LinkButton1_Click"><span>Save</span></asp:LinkButton>
                                                    <asp:LinkButton ID="LinkButton9" runat="server" class="button_edit" onclick="LinkButton9_Click"><span>Edit</span></asp:LinkButton>
                                                <% } %>
                                                
                                                    <asp:LinkButton ID="LinkButton12" runat="server" class="button_ok" onclick="LinkButton1_Click" Visible="False"><span>Next</span></asp:LinkButton>
                                                <asp:LinkButton ID="LinkButton11" runat="server" class="button_cancel" onclick="LinkButton11_Click"><span>Cancel</span></asp:LinkButton>
                                                
                                            </td>
                                        </tr>
                                        </tbody>
                                    </table>
                                </div>
                            </ContentTemplate>
                            </asp:TabPanel>

                            <asp:TabPanel runat="server" HeaderText="Client Accounts" ID="TP4">
                            <HeaderTemplate>Client Accounts</HeaderTemplate>
                            <ContentTemplate>
                                <div class="portlet-header fixed"><img src="images/icons/user.gif" width="16" height="16" alt="Client Accounts" /> Client Accounts</div>
		                        <div class="portlet-content nopadding">
                                    <table width="100%" cellpadding="0" cellspacing="0" id="Table2">
                                    <thead>
                                        <tr>                
                                            <th width="180" scope="col"><b>Name</b></th>
                                            <th width="240" scope="col"><b>Description</b></th>
                                            <th width="170" scope="col"><b>Manager</b></th>
                                            <th width="140" scope="col"><b>Number of employees</b></th>
                                            <!--<th width="90" scope="col">Actions</th>-->
                                        </tr>
                                    </thead>
                                    <tbody>
                                        <% if (accountarr!=null) {
                                               if (accountarr.Count > 0)
                                               {
                                                   foreach (RE_GenericBean rgb in accountarr)
                                                   {
                                        %>
                                        <tr>  
                                            <td width="180"><a href="Company_Info.aspx?id=<%=id %>&acc=<%=rgb.intC1 %>"><%=rgb.strC1%></a></td>
                                            <td width="240"><%=rgb.strC2%></td>
                                            <td width="170"><%=rgb.strC3%></td>
                                            <td width="140"><%=rgb.intC3%></td>
                                            <!--<td width="90">
                                                <a href="Company_Info.aspx?id=<%=id%>&acc=<%=rgb.intC1 %>" class="edit_icon" title="Edit">&nbsp;&nbsp;&nbsp;&nbsp;EDIT</a>
                                            </td>-->
                                        </tr>
                                        <%  }
                                               }
                                        }   %>
                                        <tr>
                                            <td colspan="3">
                                                <asp:HyperLink ID="HyperLink1" runat="server" class="button_ok"><span>Add</span></asp:HyperLink>
                                                <asp:ModalPopupExtender ID="HyperLink1_ModalPopupExtender" runat="server" 
                                                DynamicServicePath="" Enabled="True" TargetControlID="HyperLink1" PopupControlID="pnlAddType" BackgroundCssClass="FondoAplicacion"
                                                OnCancelScript="mpeCuentaOnCancel()"></asp:ModalPopupExtender>
                                                    <asp:LinkButton ID="LinkButton13" runat="server" class="button_ok" onclick="LinkButton13_Click" Visible="False"><span>Next</span></asp:LinkButton>
                                            </td>
                                        </tr>
                                    </tbody>
                                    </table>
                                        
                                </div>
                                <div>
                                </div>
                            </ContentTemplate>
                            </asp:TabPanel>


                            <asp:TabPanel runat="server" HeaderText="Document" ID="TP3">
                            <HeaderTemplate>Document</HeaderTemplate>
                            <ContentTemplate>
                                <div class="clear"></div>
                                <div class="portlet">
                                    <div class="portlet-header fixed">
                                        <img alt="Emergency Contacts" height="16" src="images/icons/user.gif" width="16" />
                                        Documents
                                        <asp:Label ID="lb_error_doc" runat="server" CssClass="lberror" Text="Label" Visible="False"></asp:Label>
                                    </div>
                                    <div class="portlet-content nopadding">
                                        <table width="100%" cellpadding="0" cellspacing="0" id="Table7">
                                        <tbody>
                                            <tr>
                                                <td>
                                                    <div>
                                                        <asp:GridView ID="gv_documents" runat="server"
                                                                Width="100%" AutoGenerateColumns="False" 
                                                                    onrowdatabound="gv_documents_RowDataBound" ><Columns><asp:TemplateField><ItemTemplate><asp:ImageButton ID="bt_deletedocument"   OnClick="deletedocument" Visible="true" Text="Delete" runat="server" ImageUrl="images/eraser-icon.png" Width="18px" /></ItemTemplate></asp:TemplateField><asp:TemplateField><ItemTemplate><asp:Label ID="lb_iddoc" runat="server"  Text='<%# Eval("ID")%>' Visible="false" Width="2px" />
                                                                    <asp:Label ID="lb_iddocemp" runat="server"  Text='<%# Eval("doc_id")%>' Visible="false" Width="2px" /><asp:Label ID="lb_obligatorio" runat="server"  Text='<%# Eval("obligatorio")%>' Visible="true" Width="2px" /></ItemTemplate></asp:TemplateField><asp:TemplateField HeaderText="Document"><ItemTemplate><asp:DropDownList ID="ddl_document" runat="server" DataSource='<%#getDocuments() %>'  DataTextField="nombre"  DataValueField="id" selectedvalue='<%# Eval("id") %>' Enabled="true" Width="200px"></asp:DropDownList></ItemTemplate>
                                                                    </asp:TemplateField><asp:TemplateField HeaderText="Browse"><ItemTemplate><asp:FileUpload ID="fu_document" runat="server"  Enabled="true" Width="300px"></asp:FileUpload></ItemTemplate></asp:TemplateField><asp:TemplateField><ItemTemplate><asp:Label ID="lb_path" runat="server"  Text='<%# Eval("path")%>' Visible="false" Width="2px" /></ItemTemplate></asp:TemplateField><asp:TemplateField><ItemTemplate><asp:ImageButton ID="ln_view" runat="server" Visible="false"  ImageUrl="~/pim/images/icon-document2.png"  Width="25px" /></ItemTemplate></asp:TemplateField></Columns></asp:GridView></div>
                                                </td></tr><tr><td>
                                                <asp:Panel ID="pnlAddDoc" runat="server" CssClass="CajaDialogo" 
                                                                    Width="533px" Visible="False"><table ID="Table8" align="center" cellpadding="0" cellspacing="0" 
                                                                        summary="Delete Employee" width="500"><thead><tr align="center"><th scope="col" style="text-align: center">ADD DOCUMENT</th></tr></thead><tbody><tr><td align="center"><table width="90%"><tr><td style="text-align: center" colspan="2"><asp:Label ID="Label2" runat="server" CssClass="lberror" Visible="False"></asp:Label></td></tr><tr><td style="text-align: center"><asp:DropDownList ID="ddl_newdoc" runat="server" Width="200px" 
                                                                                                    DataSource='<%# getDocuments() %>'  DataTextField="nombre"  DataValueField="id"></asp:DropDownList></td><td style="text-align: center"><asp:FileUpload ID="fu_newdoc" runat="server" Width="200px" /></td></tr><tr><td style="text-align: center">&#160;</td><td style="text-align: center">&#160;</td></tr><tr align="right">
                                                                                                    <td align="center">
                                                                                                    
                                                        <asp:LinkButton ID="lnk_addnewdoc" runat="server" class="button_ok" onclick="lnk_addnewdoc_Click"><span>Add</span></asp:LinkButton></td><td align="center">
                                                        <asp:LinkButton ID="lnk_cancel_newdoc" runat="server" class="button_notok" CssClass="button_cancel" OnClick="lnk_cancel_newdoc_Click"><span>Cancel</span></asp:LinkButton>
                                                                                                    
                                                                                                    </td></tr></table></td></tr></tbody></table></asp:Panel></td></tr><tr><td>
                                                                                                    
                                                <asp:LinkButton ID="bt_edit_doc" runat="server" class="button_ok" onclick="bt_edit_Click" CssClass="button_edit" TabIndex="86" ><span>Edit</span></asp:LinkButton>
                                                <asp:LinkButton ID="bt_docemp" runat="server" CssClass="button_ok"><span>Employee Docs</span></asp:LinkButton>      
                                                      <asp:ModalPopupExtender ID="Emp_ModalPopupExtender" runat="server" PopupControlID="pemppermit"
                                                            DynamicServicePath="" Enabled="True" TargetControlID="bt_docemp" BackgroundCssClass="FondoAplicacion"></asp:ModalPopupExtender>
                                                
                                                <asp:LinkButton ID="bt_upload_doc" runat="server" class="button_notok"  
                                                    onClick="bt_upload_doc_Click"  CssClass="button_upload" TabIndex="88" 
                                                    Visible="False"><span>Upload</span></asp:LinkButton>
                                                <asp:LinkButton ID="lnk_add_doc" runat="server" CssClass="button_add" 
                                                    Height="30px" Width="80px" TabIndex="89" onclick="lnk_add_doc_Click" 
                                                    Visible="False"><span>Add Doc</span></asp:LinkButton>
                                                
                <asp:ModalPopupExtender ID="lnk_add_doc_ModalPopupExtender" runat="server" PopupControlID="pnlAddDoc"
                                                            DynamicServicePath="" Enabled="True" TargetControlID="lnk_add_doc" BackgroundCssClass="FondoAplicacion"></asp:ModalPopupExtender>
                                                            
                                                            
                                                <asp:LinkButton ID="bt_save_doc" runat="server" class="button_ok" 
                                                    onclick="bt_save_doc_Click" CssClass="button_ok" TabIndex="85" Visible="False"><span>Next</span></asp:LinkButton>
                                                   <asp:LinkButton ID="bt_cancel_doc" runat="server" class="button_notok" onclick="bt_cancel_Click" CssClass="button_cancel" TabIndex="87"  ><span>Cancel</span></asp:LinkButton>   
                                                            
            </td></tr></td></tr></tbody></table></div>
                       
            
            </div>

            <asp:Panel ID="pemppermit" runat="server" style=" border:2px solid #4B4A4A; box-shadow:0px 0px 15px #000000; -webkit-box-shadow: 0px 0px 15px #000000;">
            <div class="portlet">
            <div class="portlet-header fixed" style="font-size:16px !Important;"><img alt="Emergency Contacts" height="16" src="images/icons/user.gif" width="16" />
                Employee Documents</div>
            <div class="portlet-content nopadding">
                <table width="100%" cellpadding="0" cellspacing="0" id="Table4">
                <tbody>
                    <tr>
                        <td>
                            <asp:Panel ID="pempdoc" runat="server">
                            </asp:Panel>
                        </td>
                    </tr>
                    <tr>
                        <td>    
                            <asp:LinkButton ID="bt_docs" runat="server" CssClass="button_ok" 
                                onclick="bt_docs_Click"><span>Save</span></asp:LinkButton>
                            <asp:LinkButton ID="LinkButton21" runat="server" CssClass=" button_cancel"><span>Cancel</span></asp:LinkButton>
                        </td>
                    </tr>
                </tbody>
                </table>
            </div>
            </div>
            </asp:Panel>

            </ContentTemplate>
                            </asp:TabPanel>


                            <asp:TabPanel runat="server" HeaderText="Company Info" ID="TP5">
                            <HeaderTemplate>Banks</HeaderTemplate>
                                <ContentTemplate>
                                <div class="clear"></div>
                                <div class="portlet">
                                <div class="portlet-header fixed"><img src="images/icons/user.gif" width="16" height="16" alt="Location" />Accounts</div>
                                <div class="portlet-content nopadding">
                                    <table cellpadding="0" cellspacing="0" id="Table9" width="100%">
                                    <thead>
                                        <tr>                
                                            <th scope="col" style="width: 168px"><b>Account Number</b></th>
                                            <th scope="col" style="width: 170px"><b>Account Type</b></th>
                                            <th width="110" scope="col"><b>Bank</b></th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        <% if (accbank!=null) {
                                               if (accbank.Count > 0)
                                               {
                                                   foreach (RE_GenericBean rgb in accbank)
                                                   {
                                        %>
                                        <tr>  
                                            <td style="width: 168px"><a href="Company_Info.aspx?id=<%=id%>&bank=<%=rgb.intC1%>"><%=rgb.strC1%></a></td>
                                            <td style="width: 170px"><%=rgb.strC2%></td>
                                            <td width="110"><%=rgb.strC3%></td>
                                            <!--<td width="110"><%=rgb.intC4%></td>-->
                                            
                                                <!--<a href="Company_Info.aspx?id=<%=id%>&bank=<%=rgb.intC1%>" class="edit_icon" title="Edit">&nbsp;&nbsp;&nbsp;&nbsp;EDIT</a>-->
                                        </tr>
                                        <%  }
                                               }
                                        }   %>
                                        <tr>
                                        <td>
                                            <asp:HyperLink ID="HyperLink2" runat="server"  class="button_ok"><span>Add</span></asp:HyperLink>
                                            <asp:ModalPopupExtender ID="HyperLink2_ModalPopupExtender" runat="server" 
                                                BackgroundCssClass="FondoAplicacion" DynamicServicePath="" Enabled="True" 
                                                OnCancelScript="mpeCuentaOnCancel()" PopupControlID="PnlAddAccount" 
                                                TargetControlID="HyperLink2">
                                            </asp:ModalPopupExtender>
                                            <asp:LinkButton ID="LinkButton20" runat="server" class="button_ok"  
                                                CssClass="button_ok" Visible="False" onclick="LinkButton20_Click1"><span>Finish</span></asp:LinkButton>
                                            </td>
                                            <td></td>
                                            <td></td>
                                        </tr>
                                    </tbody>
                                    </table>
                                    </div>
                                    </div>
                                </ContentTemplate>
                            </asp:TabPanel>



                        </asp:TabContainer>
                        <asp:Panel ID="pnlAddType" runat="server" CssClass="CajaDialogo" Width="733px">
                            <table width="700" cellpadding="0" cellspacing="0"  id="Table5" summary="Accounts" align="center">
                            <thead>
                                <tr align="center">
                                    <th align="center" scope="col"><b>Add Account</b></th>
                                </tr>   
                            </thead>
                            <tbody>
                                <tr>
                                    <td align="center">
                                        <table width="100%">
                                        <tr>
                                            <td valign="top" style="vertical-align:top">Account Name</td>
                                            <td align="right">
                                                <asp:Label ID="lb_cuentaid" runat="server" Text="0" Visible="False"></asp:Label>
                                                <asp:TextBox ID="tb_accountname" runat="server" Height="21px" Width="180px"></asp:TextBox>
                                            </td>
                                            <td valign="top" style="vertical-align:top">Number of Employees</td>
                                            <td align="right"><asp:TextBox ID="tb_numberemployee" runat="server" 
                                                    Enabled="False" Height="21px">0</asp:TextBox></td>
                                        </tr>
                                        <tr>
                                            <td valign="top" style="vertical-align:top">Company Relation</td>
                                            <td align="right" valign="top">
                                                <asp:DropDownList ID="ddl_company" runat="server" Width="184px" 
                                                    Height="23px" valign="top" CssClass="floatLeft">
                                                <asp:ListItem Value="0">Select One</asp:ListItem>
                                                </asp:DropDownList></td>
                                            <td valign="top" style="vertical-align:top">Operations Manager</td>
                                            <td align="right"><asp:TextBox ID="tb_operationmanager" runat="server" 
                                                    Height="21px"></asp:TextBox></td>
                                        </tr>
                                            <tr>
                                                <td style="vertical-align:top" valign="top">
                                                    Price Extra Order</td>
                                                <td align="right" valign="top">
                                                    <asp:TextBox ID="tb_ho" runat="server" CssClass="floatLeft"></asp:TextBox>
                                                </td>
                                                <td style="vertical-align:top" valign="top">
                                                    &nbsp;</td>
                                                <td align="right">
                                                    &nbsp;</td>
                                            </tr>
                                        <tr>
                                            <td valign="top" style="vertical-align:top">Account Description</td>
                                            <td colspan="3"  align="right"><asp:TextBox ID="tb_accountdesc" runat="server" Height="75px" TextMode="MultiLine" Width="507px"></asp:TextBox></td>
                                        </tr>
                                        <tr align="right">
                                            <td colspan="4" align="right">
                                                <span>&nbsp;</span>
                                                <asp:LinkButton ID="LinkButton4" runat="server" class="button_ok" onclick="LinkButton4_Click"><span>Save</span></asp:LinkButton>
                                            <% if (acc != 0){ %>
                                                <asp:LinkButton ID="LinkButton5" runat="server" class="button_edit" onclick="LinkButton5_Click"><span>Edit</span></asp:LinkButton>
                                                <asp:LinkButton ID="LinkButton6" runat="server" class="button_notok" onclick="LinkButton6_Click"><span>Delete</span></asp:LinkButton>
                                                <asp:ConfirmButtonExtender ID="ConfirmButtonExtender2" runat="server" ConfirmText="Are you sure the account needs to be deleted?" Enabled="True" 
                                                TargetControlID="LinkButton6"></asp:ConfirmButtonExtender>
                                            <%} %>
                                                <asp:LinkButton ID="LinkButton7" runat="server" class="button_cancel" onclick="LinkButton7_Click" Height="30px"><span>Cancel</span></asp:LinkButton>
                                            </td>
                                        </tr>
                                        </table>
                                    </td>
                                </tr>
                            </tbody>
                            </table>
                        </asp:Panel>


                        <asp:Panel ID="PnlAddAccount" runat="server" CssClass="CajaDialogo" Width="646px" Height="372px">
                            <table style=" height:351px; width:647px; " cellpadding="0" cellspacing="0" summary="Add Location" align="center">
        <thead>
            <tr align="center">
                <th align="center" scope="col">
                    Add Account 
                    <asp:Label ID="lb_accbank" runat="server" EnableTheming="True" Text="0" Visible="False"></asp:Label>
                </th>

            </tr>
        </thead>
        <tbody>
            <tr>
                <td align="left">
                    <table  style=" width:630px; height:289px">
                            <tr>
                                <td align="left" style="height: 34px; width: 200px;">Account Number</td>
                                <td style="width: 19px; height: 34px;">
                                    <asp:TextBox ID="TextBox1" runat="server" Height="16px" Width="191px"></asp:TextBox>
                                </td>
                                
                            </tr>
                            <tr>
                                <td align="left"  style="height: 39px; width: 200px;">Account Type</td>
                                <td style="width: 19px; height: 39px;">
                                    <asp:DropDownList ID="DropDownList6" runat="server" Height="23px" Width="193px" 
                                        >
                                        <asp:ListItem>Select One</asp:ListItem>
                                        <asp:ListItem>Ahorro</asp:ListItem>
                                        <asp:ListItem>Monedero</asp:ListItem>
                                        <asp:ListItem>Monetario</asp:ListItem>
                                    </asp:DropDownList>
                                </td>
                                
                            </tr>
                            <tr>
                                <td align="left"  style="height: 30px; width: 200px;">Bank</td>
                                <td style="width: 19px; height: 30px;">
                                    <asp:DropDownList 
                                        ID="DropDownList5" runat="server" 
                                        Height="21px" Width="193px">
                                    </asp:DropDownList>

                                </td>
                           
                            </tr>
                            <tr>
                                <td align="left" style="height: 17px; width: 200px;">Active</td>
                                <td style="width: 19px; height: 17px;">
                                    <asp:CheckBox ID="CheckBox1" runat="server" />
                                </td>
                            </tr> 
                            <tr>
                            <td style="height: 24px; width: 200px">

                                <asp:Label ID="lb_error" runat="server" ForeColor="#FF3300" 
                                    Text="Warning. Fill required fields!"></asp:Label>

                            </td>
                            <td style="height: 24px">
                            </td>
                            </tr>
                            <tr align="right">
                                <td height="35px" colspan="2" align="right">
                                
                                    <span>&nbsp;</span>
                                    <asp:LinkButton ID="LinkButton16" runat="server" class="button_ok" onclick="LinkButton19_Click" 
                                        ><span>Save</span></asp:LinkButton>

                                       <asp:LinkButton ID="LinkButton19" runat="server" class="button_edit" 
                                        onclick="LinkButton20_Click"><span>Edit</span></asp:LinkButton>

                                       <asp:LinkButton ID="LinkButton17" runat="server" class="button_notok" 
                                        onclick="LinkButton17_Click"><span>Delete</span></asp:LinkButton>

                                      <asp:LinkButton ID="LinkButton18" runat="server" class="button_cancel" 
                                        onclick="LinkButton18_Click"><span>Cancel</span></asp:LinkButton>
                                         
                                      
                                  
                                </td>
                            </tr>
                        </table>
                
                </td>
            </tr>
        </tbody>
        </table>
    </asp:Panel>


                    </td>
                </tr>
            </tbody>
            </table>
    </div>

    <asp:Panel ID="Panel2" runat="server" CssClass="CajaDialogo" Width="433px" Visible="true">
                            <table width="400" cellpadding="0" cellspacing="0"  id="Table6" summary="Choose Location" align="center">
                            <thead>
                                <tr align="center">
                                    <th scope="col" style="text-align: center">LOCATION INFO</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <td align="center">
                                    <table width="90%">
                                        <tr >
                                            <td colspan="4" style="text-align: center">&nbsp;</td>
                                        </tr>
                                        <tr>
                                            <td colspan="4" style="text-align: center">Choose One</td>
                                        </tr>
                                        
                                        <tr>
                                            <td colspan="4">&nbsp;</td>
                                        </tr>
                                        <tr align="right">
                                            <td ><asp:LinkButton ID="lnk_gua" runat="server" class="button_ok" onclick="lnk_gua_Click" CssClass="bandera_gua"> </asp:LinkButton></td>
                                            <td>&nbsp;</td>
                                            <td><asp:LinkButton ID="lnk_usa" runat="server" class="button_ok" CssClass="bandera_usa" onclick="lnk_usa_Click"> </asp:LinkButton></td>
                                            <td><asp:LinkButton ID="lnk_mx" runat="server" class="button_ok" CssClass="bandera_mx" onclick="lnk_mx_Click"> </asp:LinkButton></td>
                                        </tr>
                                        <tr>
                                            <td colspan="4">&nbsp;</td>
                                        </tr>
                                        <tr>
                                            <td colspan="2">&nbsp;</td>
                                            <td colspan="2"><asp:LinkButton ID="LinkButton14" runat="server" class="button_add" onclick="LinkButton14_Click" CssClass="button_cancel"><span>Cancel</span></asp:LinkButton></td>
                                        </tr>
                                        <tr>
                                            <td>&nbsp;</td>
                                            <td>&nbsp;</td>
                                        </tr>
                                    </table>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
            </asp:Panel>
    <div class="clear"></div>
    </div>
<!--  END #PORTLETS -->  
    
    
    <div class="clear"> </div>
    <div class="clear"> </div>
  </div>
</asp:Content>

